The livestock department of Thailand rescued at least 18 dogs and cats that were left stranded inside a house for more than two months.